home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 7.33 (October)
/
PC Gamer Disc 7.33 (October 2003).ISO
/
Data
/
items.pcg
/
scripts
/
DefineSprite_137
/
frame_2
/
DoAction.as
Wrap
Text File
|
2003-07-17
|
400b
|
8 lines
var thepercent = (_parent.theBox1._y - 224) / 160;
var theCeil = Math.ceil(_parent.num_Demos / _parent.scrollMax);
if(thepercent >= 1)
{
theCeil = int(_parent.num_Demos / _parent.scrollMax);
}
_parent.scrollListBox("menudemo","demoname","demonumber",_parent.num_Items,_parent.topDemo,"topDemo",int(theCeil * thepercent),"demoCount",_parent.currentDemoCount,_parent.theBox1._y,"DemoBox_y");